package com.twetec.cms.common.util.file;

import java.io.Serializable;
import java.util.List;

public class FileTreeItem implements Serializable {

    private Integer isDir;

    private String fileName;

    private Long size;

    private String ext;

    private String absolutePath;

    private String relativePath;


    private List<FileTreeItem> childList;

    public Integer getIsDir() {
        return isDir;
    }

    public void setIsDir(Integer isDir) {
        this.isDir = isDir;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }

    public List<FileTreeItem> getChildList() {
        return childList;
    }

    public void setChildList(List<FileTreeItem> childList) {
        this.childList = childList;
    }

    @Override
    public String toString() {
        return "FileTreeItem{" +
                "isDir=" + isDir +
                ", fileName='" + fileName + '\'' +
                ", size=" + size +
                ", ext='" + ext + '\'' +
                ", absolutePath='" + absolutePath + '\'' +
                ", relativePath='" + relativePath + '\'' +
                ", childList=" + childList +
                '}';
    }
}
